import request from '@/utils/request'

/**
 * 获取部门列表
 * @returns
 */
export const getDepartmentsListApi = () => {
  return request({
    url: '/company/department'
  })
}

/**
 * 根据id删除部门
 * **/
export function delDepartmentsApi(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
